<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/USB/Host/usbh_user.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_688c5dfbd99f3a5435dc860226c47105.html">USB</a></li><li class="navelem"><a class="el" href="dir_057b88310ed2bcdb5bf462b58b010ffd.html">Host</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#enum-members">枚举</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle"><div class="title">usbh_user.h 文件参考</div></div>
</div><!--header-->
<div class="contents">

<p>USB Host 用户配置  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &quot;SWM341.h&quot;</code><br />
<code>#include &quot;usbh_core.h&quot;</code><br />
<code>#include &quot;<a class="el" href="usbh__conf_8h_source.html">usbh_conf.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
usbh_user.h 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="usbh__user_8h__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_u_s_b_2_host_2usbh__user_8h" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_u_s_b_2_host_2usbh__user_8h" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_u_s_b_2_host_2usbh__user_8h">
<area shape="rect" title="USB Host 用户配置" alt="" coords="48,5,279,75"/>
<area shape="rect" title=" " alt="" coords="5,123,92,148"/>
<area shape="rect" title=" " alt="" coords="117,123,210,148"/>
<area shape="rect" href="usbh__conf_8h.html" title="USB Host Config" alt="" coords="235,123,327,148"/>
<area shape="rect" href="usbh__msc__conf_8h.html" title="USB Host MSC 类配置" alt="" coords="219,196,343,221"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
此图展示该文件直接或间接的被哪些文件引用了:</div>
<div class="dyncontent">
<div class="center"><img src="usbh__user_8h__dep__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_u_s_b_2_host_2usbh__user_8hdep" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_u_s_b_2_host_2usbh__user_8hdep" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_u_s_b_2_host_2usbh__user_8hdep">
<area shape="rect" title="USB Host 用户配置" alt="" coords="1163,5,1394,75"/>
<area shape="rect" href="bsp__init_8h.html" title="板级硬件外设初始化" alt="" coords="1015,130,1273,185"/>
<area shape="rect" href="usbh__user_8c.html" title="USB Host 用户配置" alt="" coords="1298,123,1529,192"/>
<area shape="rect" href="bsp__init_8c.html" title="板级硬件外设初始化" alt="" coords="5,247,264,302"/>
<area shape="rect" href="_flash_disk_8c.html" title="管理片外 SPI―Flash 的读写, 对接 FATFS 组件" alt="" coords="288,240,512,309"/>
<area shape="rect" href="load__mv_8c.html" title="播放 avi / wav 音视频" alt="" coords="536,240,760,309"/>
<area shape="rect" href="power__manager_8c.html" title=" " alt="" coords="784,240,1008,309"/>
<area shape="rect" href="userboot_8c.html" title="IAP 实现 UserBoot 功能" alt="" coords="1032,240,1256,309"/>
<area shape="rect" href="ui__boot_8c.html" title="开机动画/视频页, 挂载文件系统完成主页素材的导入" alt="" coords="1281,247,1522,302"/>
<area shape="rect" href="ui__update_8c.html" title="启动引导更新页, 挂载文件系统实现 UI 素材导入/更新(可选模块)" alt="" coords="1547,240,1765,309"/>
<area shape="rect" href="_mass_storage_8c.html" title=" " alt="" coords="1790,240,2031,309"/>
<area shape="rect" href="main_8c.html" title="主程序" alt="" coords="2056,247,2275,302"/>
</map>
</div>
</div>
<p><a href="usbh__user_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a7cc8c7cfcdc9b7b7bda512eb7681a30b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="usbh__user_8h.html#a7cc8c7cfcdc9b7b7bda512eb7681a30b">TIMR_USB_HOST</a>&#160;&#160;&#160;BTIMR1</td></tr>
<tr class="memdesc:a7cc8c7cfcdc9b7b7bda512eb7681a30b"><td class="mdescLeft">&#160;</td><td class="mdescRight">无 OS 下, 为保证响应放到定时器中断内执行  <a href="usbh__user_8h.html#a7cc8c7cfcdc9b7b7bda512eb7681a30b">更多...</a><br /></td></tr>
<tr class="separator:a7cc8c7cfcdc9b7b7bda512eb7681a30b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
枚举</h2></td></tr>
<tr class="memitem:ae829d35e41400a0bb30a3c0969152083"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083">usb_mode_t</a> { <br />
&#160;&#160;<a class="el" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a9667a80a93d18c16f042530a011555aa">USB_MODE_IDLE</a> = 0
, <a class="el" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083ae059ab637616c0a1b1dca3df28dd42a0">USB_MODE_HOST_CDC</a>
, <a class="el" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a923866cd17a3d5cd6f12cc7fb1c40210">USB_MODE_HOST_HID</a>
, <a class="el" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a9dcbcfb5dce2572d52398f4a0a71484f">USB_MODE_HOST_MSC</a>
, <br />
&#160;&#160;<a class="el" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a7351581484ec7c7f8abbd4f58777f30a">USB_MODE_DEVICE_CDC</a>
, <a class="el" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a5dd676d85f215f941ff470dda37ceff8">USB_MODE_DEVICE_HID</a>
, <a class="el" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083ae1d756528efb85856a6b92f34db6c729">USB_MODE_DEVICE_MSC</a>
<br />
 }</td></tr>
<tr class="memdesc:ae829d35e41400a0bb30a3c0969152083"><td class="mdescLeft">&#160;</td><td class="mdescRight">枚举 usb 工作状态  <a href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083">更多...</a><br /></td></tr>
<tr class="separator:ae829d35e41400a0bb30a3c0969152083"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:a865b1913fe55d062e746bc810a114961"><td class="memItemLeft" align="right" valign="top">USBH_User_cb_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="usbh__user_8h.html#a865b1913fe55d062e746bc810a114961">USBH_USR_cb</a></td></tr>
<tr class="memdesc:a865b1913fe55d062e746bc810a114961"><td class="mdescLeft">&#160;</td><td class="mdescRight">USB_Host 用户回调  <a href="usbh__user_8h.html#a865b1913fe55d062e746bc810a114961">更多...</a><br /></td></tr>
<tr class="separator:a865b1913fe55d062e746bc810a114961"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d48b44a4f70758a7db6679935be7643"><td class="memItemLeft" align="right" valign="top">volatile <a class="el" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083">usb_mode_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="usbh__user_8h.html#a7d48b44a4f70758a7db6679935be7643">USB_State</a></td></tr>
<tr class="memdesc:a7d48b44a4f70758a7db6679935be7643"><td class="mdescLeft">&#160;</td><td class="mdescRight">USB 工作状态  <a href="usbh__user_8h.html#a7d48b44a4f70758a7db6679935be7643">更多...</a><br /></td></tr>
<tr class="separator:a7d48b44a4f70758a7db6679935be7643"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >USB Host 用户配置 </p>
<dl class="section author"><dt>作者</dt><dd>Lib </dd></dl>
<dl class="section version"><dt>版本</dt><dd>v1.0.0 </dd></dl>
<dl class="section date"><dt>日期</dt><dd>2022.12.08 </dd></dl>
<dl class="section since"><dt>自从</dt><dd>v1.0.0 - 2022.12.08</dd></dl>
<dl class="section attention"><dt>注意</dt><dd></dd></dl>
<p>THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, SYNWIT SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONN- -ECTION WITH THEIR PRODUCTS.</p>
<dl class="section copyright"><dt>版权所有</dt><dd>2012 Synwit Technology </dd></dl>

<p class="definition">在文件 <a class="el" href="usbh__user_8h_source.html">usbh_user.h</a> 中定义.</p>
</div><h2 class="groupheader">宏定义说明</h2>
<a id="a7cc8c7cfcdc9b7b7bda512eb7681a30b" name="a7cc8c7cfcdc9b7b7bda512eb7681a30b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7cc8c7cfcdc9b7b7bda512eb7681a30b">&#9670;&#160;</a></span>TIMR_USB_HOST</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TIMR_USB_HOST&#160;&#160;&#160;BTIMR1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>无 OS 下, 为保证响应放到定时器中断内执行 </p>

<p class="definition">在文件 <a class="el" href="usbh__user_8h_source.html">usbh_user.h</a> 第 <a class="el" href="usbh__user_8h_source.html#l00030">30</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">枚举类型说明</h2>
<a id="ae829d35e41400a0bb30a3c0969152083" name="ae829d35e41400a0bb30a3c0969152083"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae829d35e41400a0bb30a3c0969152083">&#9670;&#160;</a></span>usb_mode_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083">usb_mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>枚举 usb 工作状态 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="ae829d35e41400a0bb30a3c0969152083a9667a80a93d18c16f042530a011555aa" name="ae829d35e41400a0bb30a3c0969152083a9667a80a93d18c16f042530a011555aa"></a>USB_MODE_IDLE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ae829d35e41400a0bb30a3c0969152083ae059ab637616c0a1b1dca3df28dd42a0" name="ae829d35e41400a0bb30a3c0969152083ae059ab637616c0a1b1dca3df28dd42a0"></a>USB_MODE_HOST_CDC&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ae829d35e41400a0bb30a3c0969152083a923866cd17a3d5cd6f12cc7fb1c40210" name="ae829d35e41400a0bb30a3c0969152083a923866cd17a3d5cd6f12cc7fb1c40210"></a>USB_MODE_HOST_HID&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ae829d35e41400a0bb30a3c0969152083a9dcbcfb5dce2572d52398f4a0a71484f" name="ae829d35e41400a0bb30a3c0969152083a9dcbcfb5dce2572d52398f4a0a71484f"></a>USB_MODE_HOST_MSC&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ae829d35e41400a0bb30a3c0969152083a7351581484ec7c7f8abbd4f58777f30a" name="ae829d35e41400a0bb30a3c0969152083a7351581484ec7c7f8abbd4f58777f30a"></a>USB_MODE_DEVICE_CDC&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ae829d35e41400a0bb30a3c0969152083a5dd676d85f215f941ff470dda37ceff8" name="ae829d35e41400a0bb30a3c0969152083a5dd676d85f215f941ff470dda37ceff8"></a>USB_MODE_DEVICE_HID&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ae829d35e41400a0bb30a3c0969152083ae1d756528efb85856a6b92f34db6c729" name="ae829d35e41400a0bb30a3c0969152083ae1d756528efb85856a6b92f34db6c729"></a>USB_MODE_DEVICE_MSC&#160;</td><td class="fielddoc"></td></tr>
</table>

<p class="definition">在文件 <a class="el" href="usbh__user_8h_source.html">usbh_user.h</a> 第 <a class="el" href="usbh__user_8h_source.html#l00033">33</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="a865b1913fe55d062e746bc810a114961" name="a865b1913fe55d062e746bc810a114961"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a865b1913fe55d062e746bc810a114961">&#9670;&#160;</a></span>USBH_USR_cb</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">USBH_User_cb_t USBH_USR_cb</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>USB_Host 用户回调 </p>

<p class="definition">在文件 <a class="el" href="usbh__user_8c_source.html">usbh_user.c</a> 第 <a class="el" href="usbh__user_8c_source.html#l00115">115</a> 行定义.</p>

</div>
</div>
<a id="a7d48b44a4f70758a7db6679935be7643" name="a7d48b44a4f70758a7db6679935be7643"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d48b44a4f70758a7db6679935be7643">&#9670;&#160;</a></span>USB_State</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">volatile <a class="el" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083">usb_mode_t</a> USB_State</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>USB 工作状态 </p>

<p class="definition">在文件 <a class="el" href="usbh__user_8c_source.html">usbh_user.c</a> 第 <a class="el" href="usbh__user_8c_source.html#l00024">24</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
